package com.woniuxy.lab.woniu_lab.service.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 *
 * @author 17292
 */
@Data
@ApiModel("评论对象")
public class CommentDto {

    /**
     * commentId
     */
    @ApiModelProperty(value = "评论ID" ,example = "2")
    private Integer id;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id" ,example = "1")
    private Integer userId;

    /**
     * 父评论id(0为一级评论)
     */
    @ApiModelProperty(value = "父评论id(0为一级评论)" ,example = "1")
    private Integer parentId;

    /**
     * 评论内容
     */
    @ApiModelProperty(value = "评论内容" ,example = "蜗牛币牛蜗")
    private String content;

    /**
     * 评论时间
     */
    @ApiModelProperty(value = "上传时间" ,example = "2023-03-15 15:20:30")
    private LocalDateTime commentTime;

    /**
     * 用户昵称
     */
    @ApiModelProperty(value = "用户昵称" ,example = "蜗牛币")
    private String nickName;

    /**
     * 用户头像地址
     */
    @ApiModelProperty(value = "用户头像地址" ,example = "https://www.woniuxy.com/static/woniuopen/img/woniubanner-2.png")
    private String userPic;

}
